package com.code.day13;

import java.util.Scanner;

public class Day13StringZhuanLianXi {
    public static void main(String[] args) {
        Scanner scanner =new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String str = scanner.next();
        int big =0;
        int small =0;
        int number =0;
        char[] charArray = str.toCharArray();
        for (int s =0;s<str.length();s++){
            char  c = charArray[s];
            if(c>='A'&&c<='Z'){
                big++;
            }else if(c>='a'&&c<='z'){
                small++;
            }else if(c>='0'&&c<='9'){
                number++;
            }
        }
        System.out.println("大写字母有"+big);
        System.out.println("小写字母有"+small);
        System.out.println("数字有"+number);
    }
}
